package com.zsx.shopping.ware.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 库存工作单
 * @TableName wms_order_stock_task
 */
@TableName(value ="wms_order_stock_task")
@Data
public class OrderStockTask implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 订单号
     */
    private String orderSn;

    /**
     * 锁定状态(1-已锁定 2-已解锁 3-已扣减)
     */
    private Byte lockStatus;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}